#ifndef __THREAD_TEST_H
#define __THREAD_TEST_H

// Use the same interface to both libraries

#ifdef __USE_PTHREAD
#include <pthread.h>
#define thread_t pthread_t
#define thread_self pthread_self
#define thread_yield sched_yield
#define thread_exit pthread_exit
#define thread_create(t, f, a) pthread_create(t, NULL, f, a)
#define thread_join pthread_join
#else // ifdef __USE_PTHREAD
#include "thread.h"
#endif // ifdef __USE_PTHREAD

#endif
